package org.neuedu.chapter06_0622.demo09;

public class Abs {
    public int abs(int num) {
        return num >= 0 ? num : -num;
    }

    public double abs(double num) {
        return num >= 0 ? num : -num;
    }
}
